import { emptyState } from './state';

const mutationObj = {
    resetState(state) {
        state.site = { ...emptyState.site };
    },
    setSite(state, obj) {
        state.site = {
            title: obj.title || '',
            desc: obj.desc || '',
            homePage: obj.homePage || '',
        };
    },
    updateSite(state, obj) {
        state.site = { ...state.site, ...obj };
    },
};
export default mutationObj;
